# Makefile - (C) Chris Dorman, 2024 <cddo@riseup.net>

PREFIX = /usr/local
CC = gcc

CFLAGS = -O2 -Wall -Wextra
LDFLAGS = 

BIN = microircd
OBJECTS = src/main.o src/server.o src/functions.o

all: main

fresh: clean all

main: $(OBJECTS)
	$(CC) $(OBJECTS) -o $(BIN) $(LDFLAGS) $(CFLAGS)
	
clean:
	rm -f $(OBJECTS) $(BIN)
	
install:
	cp $(BIN) $(PREFIX)/bin/$(BIN)
